#ifndef IS_ITEM_AVAILABLE_H
#define IS_ITEM_AVAILABLE_H

#include "behaviortree_cpp/bt_factory.h"
#include "rclcpp/rclcpp.hpp"

class IsItemAvailable : public BT::ConditionNode
{
  public:
    IsItemAvailable(const std::string& name, const BT::NodeConfig& config, rclcpp::Node* node);

    static BT::PortsList providedPorts();
    BT::NodeStatus tick() override;

  private:
    rclcpp::Node* node_;
};

#endif